!!! Strict
%html{:lang => "en", :xmlns => "http://www.w3.org/1999/xhtml"}
  %head
    %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
    %title=@title || "Compliance Management System"
    =stylesheet_link_tag 'dashboard'
    =javascript_include_tag 'dashboard'
    =csrf_meta_tag
    %link(href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css')

  %body
    .navbar.navbar-fixed-top
      .navbar-inner#pageheader
        .container
          .row-static
            .headerleft
              %a.brand{:href => root_path}
                -if CMS_CONFIG["COMPANY_LOGO"].present?
                  =image_tag(CMS_CONFIG['COMPANY_LOGO'], :alt => 'CMS', :title => 'CMS')
                -else
                  Google Compliance
            .headerright
              .btn-toolbar.fltrt.toolbar-nav
                -help_path = yield(:page_help)
                -if !help_path.blank?
                  .btn-group
                    %a.btn{ :href => "/help/#{help_path}", :'data-toggle' => 'modal-ajax' } Help
                -# Show 'Dashboard' unless on dashboard page
                -if controller.controller_name != 'programs_dash'
                  .btn-group
                    %a.btn{ :href => programs_dash_path } Dashboard
                =yield :header_buttons
      .navbar-secondinner
        .container
          .row-static
            .headerleft
              .container
                =yield :header
            .headerright
              =yield :subheader_plus
              .btn-toolbar.fltrt.userInfo-nav
                #userInfo
                  Welcome
                  %strong=current_user.name || current_user.email
                  %a{:href => logout_path} Logout
                =yield :subheader_extras

    .container.graphpaper
      .row
        .span12
          .flash!=[:error, :warning, :notice].map { |type| content_tag(:div, flash[type], :class => type) if flash[type] }.join
      =yield

      -##footer
        .block
          %p
            =CMS_CONFIG['COMPANY']
            Confidential.
            Copyright &copy;
            =Time.now.year
            =CMS_CONFIG['COMPANY']

      #help-modal.modal.hide.fade
        .modal-header
          %a.close{"data-dismiss" => "modal"} x
          %h1 This content/function is coming soon
        .modal-body
          %p We are working on it!
        .modal-footer
          %a.close{"data-dismiss" => "modal", :href => "#"} Close

      #comingsoon-modal.modal.hide.fade
        .modal-header
          %a.close{"data-dismiss" => "modal"} x
          %h1 This content/function is coming soon
        .modal-body
          %p We are working on it!
        .modal-footer
          %a.close{"data-dismiss" => "modal", :href => "#"} Close
